<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#add" data-toggle="tab">{:__('添加客户')}</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="add">
                <div class="widget-body no-padding">
                    <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-name" class="form-control" name="row[name]" type="text" value="" data-rule="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Contact')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-contact" class="form-control" name="row[contact]" type="text" value="" data-rule="required">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Store_name')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-store_name" class="form-control" name="row[store_name]" type="text" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-address" class="form-control" name="row[address]" type="text" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Tags')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-tags" class="form-control" name="row[tags]" type="text" value="">
                                <p class="help-block">{:__('多个标签请用逗号分隔')}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Notes')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <textarea id="c-notes" class="form-control" name="row[notes]" rows="5"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <div class="radio">
                                    {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
                                </div>
                            </div>
                        </div>
                        <div class="form-group layer-footer">
                            <label class="control-label col-xs-12 col-sm-2"></label>
                            <div class="col-xs-12 col-sm-8">
                                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div> 